
import VueRouter from 'vue-router'
import home from './components/tabs/Home.vue'
import members from './components/tabs/Members.vue'
import search from './components/tabs/Search.vue'
import shopCar from './components/tabs/shopCar.vue'
import newsList from './components/news/NewsList.vue'
import newsInfo from './components/news/NewsInfo.vue'
import photoList from './components/photos/PhotoList.vue'
import photoInfo from './components/photos/PhotoInfo.vue'
import goodsList from './components/goods/GoodsList.vue'

let routerobj = new VueRouter({
    routes:[
        {path:'/',redirect:'/home'},
        {path:'/home',component:home},
        {path:'/members',component:members},
        {path:'/shopCar',component:shopCar},
        {path:'/search',component:search},
        {path:'/home/newsList',component:newsList},
        {path:'/home/newsInfo/:id',component:newsInfo},
        {path:'/home/photoList',component:photoList},
        {path:'/photoList/photoInfo/:id',component:photoInfo},
        {path:'/goods',component:goodsList}
    ],
    linkActiveClass:'mui-active'
});

export default routerobj
